﻿using UnityEngine;
using System.Collections;
using ProtoBuf.Message;

namespace Room 
{
    class RCUIRaidHold : RCUIBase
    {
        public RCUIRaidHold(RoomCharactor owner) :base(owner) {
            type = UIType.Stronghold;
        }

        public void Init(ProtoBuf.Message.WorldBossStrongholdInfo info) {

        }

        protected override void OnClick()
        {
            var lod = owner.lod as RCLODRaidHold;
            if (lod != null) {
                switch (lod.currentState) {
                    case StrongholdState.Defend:
                    case StrongholdState.Fighting:
                        OnRaidHoldFightClick();
                        break;
                    case StrongholdState.Rewarding:
                        OnRaidHoldRewardClick();
                        break;
                    case StrongholdState.Defeat:
                    default:
                        break;
                }
            }
        }

        void OnRaidHoldFightClick() {

        }

        void OnRaidHoldRewardClick() {

        }

    }
}
